3.2.34 \(\int \frac {(f+g x)^2}{(a+b \log (c (d+e x)^n))^{5/2}} \, dx\) [134]

Optimal. Leaf size=421 \[ \frac {4 e^{-\frac {a}{b n}} (e f-d g)^2 \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {16 e^{-\frac {2 a}{b n}} g (e f-d g) \sqrt {2 \pi } (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {4 e^{-\frac {3 a}{b n}} g^2 \sqrt {3 \pi } (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{b^{5/2} e^3 n^{5/2}}-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}} \]

[Out]

-2/3*(e*x+d)*(g*x+f)^2/b/e/n/(a+b*ln(c*(e*x+d)^n))^(3/2)+4/3*(-d*g+e*f)^2*(e*x+d)*erfi((a+b*ln(c*(e*x+d)^n))^(
1/2)/b^(1/2)/n^(1/2))*Pi^(1/2)/b^(5/2)/e^3/exp(a/b/n)/n^(5/2)/((c*(e*x+d)^n)^(1/n))+16/3*g*(-d*g+e*f)*(e*x+d)^
2*erfi(2^(1/2)*(a+b*ln(c*(e*x+d)^n))^(1/2)/b^(1/2)/n^(1/2))*2^(1/2)*Pi^(1/2)/b^(5/2)/e^3/exp(2*a/b/n)/n^(5/2)/
((c*(e*x+d)^n)^(2/n))+4*g^2*(e*x+d)^3*erfi(3^(1/2)*(a+b*ln(c*(e*x+d)^n))^(1/2)/b^(1/2)/n^(1/2))*3^(1/2)*Pi^(1/
2)/b^(5/2)/e^3/exp(3*a/b/n)/n^(5/2)/((c*(e*x+d)^n)^(3/n))+8/3*(-d*g+e*f)*(e*x+d)*(g*x+f)/b^2/e^2/n^2/(a+b*ln(c
*(e*x+d)^n))^(1/2)-4*(e*x+d)*(g*x+f)^2/b^2/e/n^2/(a+b*ln(c*(e*x+d)^n))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 1.01, antiderivative size = 421, normalized size of antiderivative = 1.00, number of steps used = 41, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {2447, 2448, 2436, 2337, 2211, 2235, 2437, 2347} \begin {gather*} \frac {16 \sqrt {2 \pi } g e^{-\frac {2 a}{b n}} (d+e x)^2 (e f-d g) \left (c (d+e x)^n\right )^{-2/n} \text {Erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {4 \sqrt {\pi } e^{-\frac {a}{b n}} (d+e x) (e f-d g)^2 \left (c (d+e x)^n\right )^{-1/n} \text {Erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {4 \sqrt {3 \pi } g^2 e^{-\frac {3 a}{b n}} (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {Erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{b^{5/2} e^3 n^{5/2}}+\frac {8 (d+e x) (f+g x) (e f-d g)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(f + g*x)^2/(a + b*Log[c*(d + e*x)^n])^(5/2),x]

[Out]

(4*(e*f - d*g)^2*Sqrt[Pi]*(d + e*x)*Erfi[Sqrt[a + b*Log[c*(d + e*x)^n]]/(Sqrt[b]*Sqrt[n])])/(3*b^(5/2)*e^3*E^(
a/(b*n))*n^(5/2)*(c*(d + e*x)^n)^n^(-1)) + (16*g*(e*f - d*g)*Sqrt[2*Pi]*(d + e*x)^2*Erfi[(Sqrt[2]*Sqrt[a + b*L
og[c*(d + e*x)^n]])/(Sqrt[b]*Sqrt[n])])/(3*b^(5/2)*e^3*E^((2*a)/(b*n))*n^(5/2)*(c*(d + e*x)^n)^(2/n)) + (4*g^2
*Sqrt[3*Pi]*(d + e*x)^3*Erfi[(Sqrt[3]*Sqrt[a + b*Log[c*(d + e*x)^n]])/(Sqrt[b]*Sqrt[n])])/(b^(5/2)*e^3*E^((3*a
)/(b*n))*n^(5/2)*(c*(d + e*x)^n)^(3/n)) - (2*(d + e*x)*(f + g*x)^2)/(3*b*e*n*(a + b*Log[c*(d + e*x)^n])^(3/2))
 + (8*(e*f - d*g)*(d + e*x)*(f + g*x))/(3*b^2*e^2*n^2*Sqrt[a + b*Log[c*(d + e*x)^n]]) - (4*(d + e*x)*(f + g*x)
^2)/(b^2*e*n^2*Sqrt[a + b*Log[c*(d + e*x)^n]])

Rule 2211

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/Sqrt[(c_.) + (d_.)*(x_)], x_Symbol] :> Dist[2/d, Subst[Int[F^(g*(e - c*(
f/d)) + f*g*(x^2/d)), x], x, Sqrt[c + d*x]], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2235

Int[(F_)^((a_.) + (b_.)*((c_.) + (d_.)*(x_))^2), x_Symbol] :> Simp[F^a*Sqrt[Pi]*(Erfi[(c + d*x)*Rt[b*Log[F], 2
]]/(2*d*Rt[b*Log[F], 2])), x] /; FreeQ[{F, a, b, c, d}, x] && PosQ[b]

Rule 2337

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_), x_Symbol] :> Dist[x/(n*(c*x^n)^(1/n)), Subst[Int[E^(x/n)*(a +
b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, n, p}, x]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2436

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.), x_Symbol] :> Dist[1/e, Subst[Int[(a + b*Log[c*
x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, n, p}, x]

Rule 2437

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_) + (g_.)*(x_))^(q_.), x_Symbol] :> Dist[1/
e, Subst[Int[(f*(x/d))^q*(a + b*Log[c*x^n])^p, x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p, q}, x]
 && EqQ[e*f - d*g, 0]

Rule 2447

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[(d
 + e*x)*(f + g*x)^q*((a + b*Log[c*(d + e*x)^n])^(p + 1)/(b*e*n*(p + 1))), x] + (-Dist[(q + 1)/(b*n*(p + 1)), I
nt[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^(p + 1), x], x] + Dist[q*((e*f - d*g)/(b*e*n*(p + 1))), Int[(f + g*x
)^(q - 1)*(a + b*Log[c*(d + e*x)^n])^(p + 1), x], x]) /; FreeQ[{a, b, c, d, e, f, g, n}, x] && NeQ[e*f - d*g,
0] && LtQ[p, -1] && GtQ[q, 0]

Rule 2448

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Int[Exp
andIntegrand[(f + g*x)^q*(a + b*Log[c*(d + e*x)^n])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, n, p}, x] && NeQ[
e*f - d*g, 0] && IGtQ[q, 0]

Rubi steps

\begin {align*} \int \frac {(f+g x)^2}{\left (a+b \log \left (c (d+e x)^n\right )\right )^{5/2}} \, dx &=-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {2 \int \frac {(f+g x)^2}{\left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}} \, dx}{b n}-\frac {(4 (e f-d g)) \int \frac {f+g x}{\left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}} \, dx}{3 b e n}\\ &=-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {12 \int \frac {(f+g x)^2}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 n^2}-\frac {(16 (e f-d g)) \int \frac {f+g x}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{3 b^2 e n^2}-\frac {(8 (e f-d g)) \int \frac {f+g x}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e n^2}+\frac {\left (8 (e f-d g)^2\right ) \int \frac {1}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{3 b^2 e^2 n^2}\\ &=-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {12 \int \left (\frac {(e f-d g)^2}{e^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {2 g (e f-d g) (d+e x)}{e^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {g^2 (d+e x)^2}{e^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}\right ) \, dx}{b^2 n^2}-\frac {(16 (e f-d g)) \int \left (\frac {e f-d g}{e \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {g (d+e x)}{e \sqrt {a+b \log \left (c (d+e x)^n\right )}}\right ) \, dx}{3 b^2 e n^2}-\frac {(8 (e f-d g)) \int \left (\frac {e f-d g}{e \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {g (d+e x)}{e \sqrt {a+b \log \left (c (d+e x)^n\right )}}\right ) \, dx}{b^2 e n^2}+\frac {\left (8 (e f-d g)^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{3 b^2 e^3 n^2}\\ &=-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {\left (12 g^2\right ) \int \frac {(d+e x)^2}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e^2 n^2}-\frac {(16 g (e f-d g)) \int \frac {d+e x}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{3 b^2 e^2 n^2}-\frac {(8 g (e f-d g)) \int \frac {d+e x}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e^2 n^2}+\frac {(24 g (e f-d g)) \int \frac {d+e x}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e^2 n^2}-\frac {\left (16 (e f-d g)^2\right ) \int \frac {1}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{3 b^2 e^2 n^2}-\frac {\left (8 (e f-d g)^2\right ) \int \frac {1}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e^2 n^2}+\frac {\left (12 (e f-d g)^2\right ) \int \frac {1}{\sqrt {a+b \log \left (c (d+e x)^n\right )}} \, dx}{b^2 e^2 n^2}+\frac {\left (8 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{3 b^2 e^3 n^3}\\ &=-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {\left (12 g^2\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{b^2 e^3 n^2}-\frac {(16 g (e f-d g)) \text {Subst}\left (\int \frac {x}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{3 b^2 e^3 n^2}-\frac {(8 g (e f-d g)) \text {Subst}\left (\int \frac {x}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{b^2 e^3 n^2}+\frac {(24 g (e f-d g)) \text {Subst}\left (\int \frac {x}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{b^2 e^3 n^2}-\frac {\left (16 (e f-d g)^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{3 b^2 e^3 n^2}-\frac {\left (8 (e f-d g)^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{b^2 e^3 n^2}+\frac {\left (12 (e f-d g)^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b \log \left (c x^n\right )}} \, dx,x,d+e x\right )}{b^2 e^3 n^2}+\frac {\left (16 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{3 b^3 e^3 n^3}\\ &=\frac {8 e^{-\frac {a}{b n}} (e f-d g)^2 \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {\left (12 g^2 (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {3 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{b^2 e^3 n^3}-\frac {\left (16 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{3 b^2 e^3 n^3}-\frac {\left (8 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{b^2 e^3 n^3}+\frac {\left (24 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {2 x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{b^2 e^3 n^3}-\frac {\left (16 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{3 b^2 e^3 n^3}-\frac {\left (8 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{b^2 e^3 n^3}+\frac {\left (12 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {x}{n}}}{\sqrt {a+b x}} \, dx,x,\log \left (c (d+e x)^n\right )\right )}{b^2 e^3 n^3}\\ &=\frac {8 e^{-\frac {a}{b n}} (e f-d g)^2 \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}+\frac {\left (24 g^2 (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n}\right ) \text {Subst}\left (\int e^{-\frac {3 a}{b n}+\frac {3 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{b^3 e^3 n^3}-\frac {\left (32 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b n}+\frac {2 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{3 b^3 e^3 n^3}-\frac {\left (16 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b n}+\frac {2 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{b^3 e^3 n^3}+\frac {\left (48 g (e f-d g) (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n}\right ) \text {Subst}\left (\int e^{-\frac {2 a}{b n}+\frac {2 x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{b^3 e^3 n^3}-\frac {\left (32 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{3 b^3 e^3 n^3}-\frac {\left (16 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{b^3 e^3 n^3}+\frac {\left (24 (e f-d g)^2 (d+e x) \left (c (d+e x)^n\right )^{-1/n}\right ) \text {Subst}\left (\int e^{-\frac {a}{b n}+\frac {x^2}{b n}} \, dx,x,\sqrt {a+b \log \left (c (d+e x)^n\right )}\right )}{b^3 e^3 n^3}\\ &=\frac {4 e^{-\frac {a}{b n}} (e f-d g)^2 \sqrt {\pi } (d+e x) \left (c (d+e x)^n\right )^{-1/n} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {16 e^{-\frac {2 a}{b n}} g (e f-d g) \sqrt {2 \pi } (d+e x)^2 \left (c (d+e x)^n\right )^{-2/n} \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{3 b^{5/2} e^3 n^{5/2}}+\frac {4 e^{-\frac {3 a}{b n}} g^2 \sqrt {3 \pi } (d+e x)^3 \left (c (d+e x)^n\right )^{-3/n} \text {erfi}\left (\frac {\sqrt {3} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )}{b^{5/2} e^3 n^{5/2}}-\frac {2 (d+e x) (f+g x)^2}{3 b e n \left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}+\frac {8 (e f-d g) (d+e x) (f+g x)}{3 b^2 e^2 n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}-\frac {4 (d+e x) (f+g x)^2}{b^2 e n^2 \sqrt {a+b \log \left (c (d+e x)^n\right )}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(1044\) vs. \(2(421)=842\).
time = 2.25, size = 1044, normalized size = 2.48 \begin {gather*} \frac {2 (d+e x) \left (-10 \sqrt {b} d e^{-\frac {2 a}{b n}} g^2 \sqrt {n} \sqrt {\pi } \left (c (d+e x)^n\right )^{-2/n} \left (2 d e^{\frac {a}{b n}} \left (c (d+e x)^n\right )^{\frac {1}{n}} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )-\sqrt {2} (d+e x) \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )\right )+8 \sqrt {b} e e^{-\frac {2 a}{b n}} f g \sqrt {n} \sqrt {\pi } \left (c (d+e x)^n\right )^{-2/n} \left (-2 d e^{\frac {a}{b n}} \left (c (d+e x)^n\right )^{\frac {1}{n}} \text {erfi}\left (\frac {\sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )+\sqrt {2} (d+e x) \text {erfi}\left (\frac {\sqrt {2} \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {b} \sqrt {n}}\right )\right )-\frac {6 e^{-\frac {3 a}{b n}} g^2 \sqrt {\pi } \left (c (d+e x)^n\right )^{-3/n} \left (\sqrt {3} (d+e x)^2-3 \sqrt {2} d e^{\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{\frac {1}{n}}+3 d^2 e^{\frac {2 a}{b n}} \left (c (d+e x)^n\right )^{2/n}-3 d^2 e^{\frac {2 a}{b n}} \left (c (d+e x)^n\right )^{2/n} \text {erf}\left (\sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}\right )+3 \sqrt {2} d e^{\frac {a}{b n}} (d+e x) \left (c (d+e x)^n\right )^{\frac {1}{n}} \text {erf}\left (\sqrt {2} \sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}\right )-\sqrt {3} (d+e x)^2 \text {erf}\left (\sqrt {3} \sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}\right )\right ) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}}-\frac {2 e^2 e^{-\frac {a}{b n}} f^2 \left (c (d+e x)^n\right )^{-1/n} \Gamma \left (\frac {1}{2},-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}}-\frac {12 d e e^{-\frac {a}{b n}} f g \left (c (d+e x)^n\right )^{-1/n} \Gamma \left (\frac {1}{2},-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}}-\frac {4 d^2 e^{-\frac {a}{b n}} g^2 \left (c (d+e x)^n\right )^{-1/n} \Gamma \left (\frac {1}{2},-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}\right ) \sqrt {a+b \log \left (c (d+e x)^n\right )}}{\sqrt {-\frac {a+b \log \left (c (d+e x)^n\right )}{b n}}}-\frac {b e n (f+g x) \left (b e n (f+g x)+2 a (e f+2 d g+3 e g x)+2 b (2 d g+e (f+3 g x)) \log \left (c (d+e x)^n\right )\right )}{\left (a+b \log \left (c (d+e x)^n\right )\right )^{3/2}}\right )}{3 b^3 e^3 n^3} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(f + g*x)^2/(a + b*Log[c*(d + e*x)^n])^(5/2),x]

[Out]

(2*(d + e*x)*((-10*Sqrt[b]*d*g^2*Sqrt[n]*Sqrt[Pi]*(2*d*E^(a/(b*n))*(c*(d + e*x)^n)^n^(-1)*Erfi[Sqrt[a + b*Log[
c*(d + e*x)^n]]/(Sqrt[b]*Sqrt[n])] - Sqrt[2]*(d + e*x)*Erfi[(Sqrt[2]*Sqrt[a + b*Log[c*(d + e*x)^n]])/(Sqrt[b]*
Sqrt[n])]))/(E^((2*a)/(b*n))*(c*(d + e*x)^n)^(2/n)) + (8*Sqrt[b]*e*f*g*Sqrt[n]*Sqrt[Pi]*(-2*d*E^(a/(b*n))*(c*(
d + e*x)^n)^n^(-1)*Erfi[Sqrt[a + b*Log[c*(d + e*x)^n]]/(Sqrt[b]*Sqrt[n])] + Sqrt[2]*(d + e*x)*Erfi[(Sqrt[2]*Sq
rt[a + b*Log[c*(d + e*x)^n]])/(Sqrt[b]*Sqrt[n])]))/(E^((2*a)/(b*n))*(c*(d + e*x)^n)^(2/n)) - (6*g^2*Sqrt[Pi]*(
Sqrt[3]*(d + e*x)^2 - 3*Sqrt[2]*d*E^(a/(b*n))*(d + e*x)*(c*(d + e*x)^n)^n^(-1) + 3*d^2*E^((2*a)/(b*n))*(c*(d +
 e*x)^n)^(2/n) - 3*d^2*E^((2*a)/(b*n))*(c*(d + e*x)^n)^(2/n)*Erf[Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]] +
3*Sqrt[2]*d*E^(a/(b*n))*(d + e*x)*(c*(d + e*x)^n)^n^(-1)*Erf[Sqrt[2]*Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]
] - Sqrt[3]*(d + e*x)^2*Erf[Sqrt[3]*Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]])*Sqrt[a + b*Log[c*(d + e*x)^n]]
)/(E^((3*a)/(b*n))*(c*(d + e*x)^n)^(3/n)*Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]) - (2*e^2*f^2*Gamma[1/2, -(
(a + b*Log[c*(d + e*x)^n])/(b*n))]*Sqrt[a + b*Log[c*(d + e*x)^n]])/(E^(a/(b*n))*(c*(d + e*x)^n)^n^(-1)*Sqrt[-(
(a + b*Log[c*(d + e*x)^n])/(b*n))]) - (12*d*e*f*g*Gamma[1/2, -((a + b*Log[c*(d + e*x)^n])/(b*n))]*Sqrt[a + b*L
og[c*(d + e*x)^n]])/(E^(a/(b*n))*(c*(d + e*x)^n)^n^(-1)*Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]) - (4*d^2*g^
2*Gamma[1/2, -((a + b*Log[c*(d + e*x)^n])/(b*n))]*Sqrt[a + b*Log[c*(d + e*x)^n]])/(E^(a/(b*n))*(c*(d + e*x)^n)
^n^(-1)*Sqrt[-((a + b*Log[c*(d + e*x)^n])/(b*n))]) - (b*e*n*(f + g*x)*(b*e*n*(f + g*x) + 2*a*(e*f + 2*d*g + 3*
e*g*x) + 2*b*(2*d*g + e*(f + 3*g*x))*Log[c*(d + e*x)^n]))/(a + b*Log[c*(d + e*x)^n])^(3/2)))/(3*b^3*e^3*n^3)

________________________________________________________________________________________

Maple [F]
time = 0.15, size = 0, normalized size = 0.00 \[\int \frac {\left (g x +f \right )^{2}}{\left (a +b \ln \left (c \left (e x +d \right )^{n}\right )\right )^{\frac {5}{2}}}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x+f)^2/(a+b*ln(c*(e*x+d)^n))^(5/2),x)

[Out]

int((g*x+f)^2/(a+b*ln(c*(e*x+d)^n))^(5/2),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^2/(a+b*log(c*(e*x+d)^n))^(5/2),x, algorithm="maxima")

[Out]

integrate((g*x + f)^2/(b*log((x*e + d)^n*c) + a)^(5/2), x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^2/(a+b*log(c*(e*x+d)^n))^(5/2),x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (co
nstant residues)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (f + g x\right )^{2}}{\left (a + b \log {\left (c \left (d + e x\right )^{n} \right )}\right )^{\frac {5}{2}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)**2/(a+b*ln(c*(e*x+d)**n))**(5/2),x)

[Out]

Integral((f + g*x)**2/(a + b*log(c*(d + e*x)**n))**(5/2), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^2/(a+b*log(c*(e*x+d)^n))^(5/2),x, algorithm="giac")

[Out]

integrate((g*x + f)^2/(b*log((x*e + d)^n*c) + a)^(5/2), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (f+g\,x\right )}^2}{{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^{5/2}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((f + g*x)^2/(a + b*log(c*(d + e*x)^n))^(5/2),x)

[Out]

int((f + g*x)^2/(a + b*log(c*(d + e*x)^n))^(5/2), x)

________________________________________________________________________________________